package com.heima.feign.article;


import com.heima.feign.article.fallback.ArticleFeginFallbackClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 从nacos中获取对应的服务名称
 * 
 */
@FeignClient(value = "leadnews-article",fallback = ArticleFeginFallbackClient.class)
public interface ArticleFeignClient {
    /**
     * 保存三剑客
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto);

}
